<%-- 
    Document   : index
    Created on : 13/07/2013, 11:28:36
    Author     : educacionit
--%>

<%@page import="java.util.List"%>
<%@page import="java.util.List"%>
<%
    List<String> lerror = (List)request.getAttribute("listaErrores");
   
%>


<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <form method="post" action="miServlet">
            <input type="text" name="nombre"/>
            <input type="text" name="apellido"/>
            <input type="submit" value="enviar"/>
        </form>
        
        <%
             if(lerror!= null)
            {
                for(int i =0; i<lerror.size(); i++)
                {
                    out.println("Los errores son: " +lerror.get(i) + "<br/>");            
                    
                }
            }
        %>
    </body>
</html>
